int fact (int n) {
    if (n == 0) return 1;
    else return (n*fact(n-1));
}

main (int argc, char **argv) {
    int i;
    for (i=0; i< argc; i++) {
         printf("param %d=%s \n", i,argv[i]);
    }
    printf("%d\n", fact(atoi(argv[1])));
}
